<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    h1{
      margin-left:40%;

    }
    form{
      margin-left: 40%;
    }
    body {
      background: url("https://www.keaidian.com/uploads/allimg/190424/24110307_23.jpg") center; /* 首先增加背景图 */
      background-size:100% 100%; /* 设置背景的大小 */
      background-repeat: no-repeat; /* 将背景设置为不重复显示 */
      background-attachment: fixed;
      opacity: 0.8;
      height: 100%;
      width: 100%;
    }
  </style>
</head>
<body>
<h1>注册</h1>
<form action="/demo1mvc/testServlet" method="get" >
  <label>编号</label><input type="text" name="id"><br/>
  <label>用户</label><input type="text" name="username"><br/>
  <label>密码</label><input type="password" name="password"><br/>

  <button type="submit"  >注册</button>
</form>

</body>
</html>
